home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-10-01 | 874 b | 31 lines | [TEXT/ToyS] |
- on open fileDropList
- tell application "EPS Fixer"
- set theCount to count of fileDropList
- set filesProcessed to 0
- repeat with i from 1 to theCount
- set theFile to item i of fileDropList
- set theInfo to info for theFile
- set theName to name of theInfo
- set theType to file type of theInfo
- if theType = "TEXT" or theType = "EPSF" then
- open theFile
- save document theName in theFile
- close document theName
- set filesProcessed to filesProcessed + 1
- end if
- end repeat
- quit
- end tell
- if filesProcessed > 0 then
- if filesProcessed is equal to 1 then
- set resultString to "One file was processed."
- else
- set resultString to {theCount, " files were processed."} as string
- end if
- else
- set resultString to {"No files were processed."} as string
- end if
- display dialog resultString buttons "OK" with icon 1 default button 1
-
- end open
-